package com.wssnail.dto;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class ReceiveMessage {

    @XmlElement(name = "ToUserName", required = true)
    private String toUserName;

    @XmlElement(name = "FromUserName", required = true)
    private String fromUserName;

    @XmlElement(name = "CreateTime", required = true)
    private Long createTime;

    @XmlElement(name = "MsgType", required = true)
    private String msgType;

    //文本消息内容
    @XmlElement(name = "Content")
    private String content;

    @XmlElement(name = "MsgId", required = true)
    private Integer msgId;

    @XmlElement(name = "PicUrl")
    private String picUrl;

    @XmlElement(name = "MediaId")
    private String mediaId;

    @XmlElement(name = "Format")
    private String format;

    @XmlElement(name = "Recognition")
    private String recognition;

    @XmlElement(name = "ThumbMediaId")
    private String thumbMediaId;

    //地理位置纬度
    @XmlElement(name = "Location_X")
    private Double locationX;

    //地理位置经度
    @XmlElement(name = "Location_Y")
    private Double locationY;

    //地图缩放大小
    @XmlElement(name = "Scale")
    private Integer scale;

    //地理位置信息
    @XmlElement(name = "Label")
    private String label;

    @XmlElement(name = "Title")
    private String title;

    @XmlElement(name = "Description")
    private String description;

    @XmlElement(name = "Url")
    private String url;

    @XmlElement(name = "Event")
    private String event;

    @XmlElement(name = "EventKey")
    private String eventKey;

    @XmlElement(name = "Ticket")
    private String ticket;

    //事件消息 地理位置纬度
    @XmlElement(name = "Latitude")
    private Double latitude;

    //事件消息 地理位置经度
    @XmlElement(name = "Longitude")
    private Double longitude;

    //地理位置精度
    @XmlElement(name = "Precision")
    private Double precision;
}